const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  lintOnSave: false, //忽略lint检测
  //请求代理
  devServer: {
    proxy: {
      //http://localhost:7001/api/name -> http://39.102.89.187:7001/name
      '^/api': {
        target: 'http://39.102.89.187:7001',
        pathRewrite: {
          '/api': ''
        }
      },
    }
  }
});